From 90193e75a116b1f639786bc16d55ada93d31257d Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Tue, 29 Jun 2004 14:44:41 +0000 Subject: [PATCH] bitkeeper revision 1.1026.1.5 (40e18059BIr0LJ7EXKzYZYTXl3XGNA) Fix misplaced exit in vifctl. --- BitKeeper/etc/ignore | 1 + tools/xen/lib/util/Brctl.py | 7 +++---- tools/xen/vifctl | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore index 0d23e1bd2d..6f52b7f4ec 100644 --- a/BitKeeper/etc/ignore +++ b/BitKeeper/etc/ignore @@ -52,3 +52,4 @@ xen/tools/figlet/figlet xen/xen xen/xen-syms xen/xen.* +tools/xc/lib/.xc_rrobin.o.d diff --git a/tools/xen/lib/util/Brctl.py b/tools/xen/lib/util/Brctl.py index 32dd16bf81..9d3eba1e5f 100644 --- a/tools/xen/lib/util/Brctl.py +++ b/tools/xen/lib/util/Brctl.py @@ -33,7 +33,6 @@ def vif_bridge_add(params): """Add the network interface for vif on dom to a bridge. """ cmd(CMD_BRCTL, 'addif %(bridge)s %(vif)s' % params) - return bridge def vif_bridge_rem(params): """Remove the network interface for vif on dom from a bridge. @@ -122,11 +121,11 @@ def reconfigure(interface, bridge): global opts intf_info = ifconfig(interface) if not intf_info: - print 'Interface not found:', interface + print >>sys.stderr, 'Interface not found:', interface return #bridge_info = ifconfig(bridge) #if not bridge_info: - # print 'Bridge not found:', bridge + # print >>sys.stderr, 'Bridge not found:', bridge # return route_info = routes() intf_info['bridge'] = bridge @@ -137,7 +136,7 @@ def reconfigure(interface, bridge): r['interface'] == interface): intf_info['gateway'] = r['gateway'] if not intf_info['gateway']: - print 'Gateway not found: ', interface + print >>sys.stderr, 'Gateway not found: ', interface return cmd(CMD_IFCONFIG, '%(bridge)s %(address)s netmask %(mask)s broadcast %(broadcast)s up' diff --git a/tools/xen/vifctl b/tools/xen/vifctl index 095dc987f4..efd0b0b063 100644 --- a/tools/xen/vifctl +++ b/tools/xen/vifctl @@ -40,6 +40,7 @@ class VifControl: self.name = 'vifctl' def main(self, args): + #print self.name, args if len(args) < 2: usage(args) self.name = args[0] @@ -85,7 +86,7 @@ class VifControl: for x in req: if not d[x]: print >>sys.stderr, 'Missing parameter:', x - sys.exit(1) + sys.exit(1) return d def vifctl_help(self, args): -- 2.30.2